#!/home/python/.virtualenvs/open/bin/python

import sys
sys.path.append('./')
sys.path.insert(0, "../")

import os
if not os.getenv('DJANGO_SETTINGS_MODULE'):
    os.environ['DJANGO_SETTINGS_MODULE'] = 'equity_mall.settings.prod'

import django
django.setup()

import requests, json, time
from lxml import etree

from users.models import CustomerUserVice


def wash_operator():
    queryset = CustomerUserVice.objects.filter(mobile__isnull=False, operator__isnull=True, id__in=[29931,70592,566705,615593,694964,732031,788634,893910,922266,931564,946442,956666,973534,974607,1100282,1189716,1328423,1412120,1697417,1762650,1881166,1914139,1971190,2133852,2215486,2268738,2511499,2589257,2744292,3073774,3073776,3073912,3074197,3074242,3074246,3074949,3076428,3076633,3076956,3077250,3077402,3077854,3079235,3084195,3084212,3086371,3088066,3089191,3089195,3089261,3094217,3094244,3097264,3097882,3100074,3101805,3113211,3120434,3121292,3121661,3121990,3122232,3122316,3122513,3122716,3123011,3123213,3123412,3123661,3123883,3124089,3124258,3124308,3124436,3124472,3124590,3125016,3125236,3125312,3125360,3125566,3125568,3125668,3125682,3126154,3126742,3127121,3127326,3127402,3127641,3127683,3128048,3128523,3128681,3128865,3128868,3128994,3129185,3129313,3129373,3129417,3129557,3129875,3130041,3130165,3130302,3130404,3130516,3130633,3130978,3130980,3131245,3131302,3131409,3131432,3131469,3131486,3131686,3131858,3131977,3132475,3132695,3132970,3133634,3133656,3133771,3133802,3133869,3134032,3135074,3135164,3135333,3135380,3135402,3135490,3135514,3135833,3137916,3138563,3138742,3144925,3145089,3145452,3145869,3146213,3146300,3146323,3146351,3146397,3146644,3146704,3146794,3147040,3147501,3147652,3147759,3147973,3148116,3148692,3148990,3149117,3149223,3149718,3149738,3149892,3150046,3150173,3150194,3150489,3150538,3150692,3150802,3150883,3150922,3151272,3151327,3151572,3151575,3151614,3151858,3152064,3152759,3152876,3152994,3153088,3153383,3153440,3153449,3153836,3153922,3153928,3154361,3154393,3154744,3154747,3155205,3155546,3155561,3156122,3156205,3157667,3157904,3158320,3173383,3175543,3192172,3194957,3194962,3196583,3196680,3198303,3203582,3208435,3212190,3227656,3229793,3233335,3233356,3233545,3233704,3233812,3233965,3234462,3234499,3234647,3234791,3234831,3235145,3235257,3235363,3235374,3235496,3235723,3235733,3235771,3235806,3235858,3236554,3236600,3236993,3238891,3240666,3241377,3241380,3241580,3242471,3242567,3243063,3243091,3243169,3243287,3243392,3243632,3243813,3243819,3243858,3243945,3243982,3244054,3244215,3244356,3244365,3244375,3244387,3244428,3244439,3244453,3244469,3244474,3244491,3244492,3244496,3244503,3244529,3244532,3244584,3244586,3244612,3244735,3244772,3245006,3245418,3245956,3246111,3246116,3246293,3246333,3246384,3246399,3246616,3246646,3246711,3246826,3247211,3247311,3247443,3247497,3247562,3247626,3248036,3248085,3248130,3248152,3248193,3248231,3248402,3248493,3248499,3248683,3248911,3248930,3248969,3249007,3249087,3249143,3249170,3249237,3249258,3249291,3249414,3249431,3249596,3249726,3249859,3249889,3249912,3249962,3250032,3250040,3250090,3250111,3250113,3250173,3250206,3250212,3250231,3250272,3250309,3250391,3250408,3250535,3250560,3250656,3250681,3250971,3251264,3251300,3251373,3251642,3251762,3251865,3252025,3252096,3252583,3252590,3252698,3252749,3252764,3252793,3252937,3252982,3253284,3253341,3253394,3253420,3253516,3253885,3253896,3253931,3253932,3254044,3254271,3254279,3254337,3254349,3254409,3254417,3254442,3254448,3254637,3254652,3254665,3254696,3254724,3254789,3254884,3254943,3255268,3255325,3255383,3255594,3255650,3255739,3255875,3256150,3256175,3256190,3256239,3256288,3256359,3256426,3256433,3256455,3256462,3256514,3256720,3256757,3256792,3256859,3257046,3257137,3257138,3257182,3257238,3257240,3257267,3257383,3257461,3257491,3257519,3257637,3257681,3257802,3257831,3257834,3257864,3257904,3257954,3257984,3257990,3257997,3258003,3258013,3258014,3258021,3258048,3258057,3258154,3258295,3258313,3258381,3258459,3258532,3258533,3258587,3258669,3258713,3258727,3258735,3258778,3258931,3259067,3259135,3259210,3259221,3259279,3259312,3259319,3259334,3259378,3259531,3259532,3259537,3259568,3259625,3259631,3259644,3259689,3259703,3259710,3259726,3259772,3259787,3259800,3259866,3259910,3259919,3259982,3260015,3260112,3260185,3260210,3260217,3260225,3260231,3260244,3260247,3260258,3260272,3260316,3260422,3260443,3260454,3260461,3260475,3260513,3260522,3260561,3260587,3260606,3260757,3260807,3260811,3260858,3260863,3260904,3260905,3260929,3260985,3261005,3261060,3261072,3261088,3261126,3261144,3261169,3261171,3261197,3261200,3261213,3261236,3261327,3261331,3261364,3261385,3261530,3261648,3261691,3261715,3261720,3261923,3262028,3262035,3262055,3262096,3262128,3262245,3262291,3262311,3262319,3262323,3262347,3262385,3262419,3262470,3262503,3262550,3262564,3262698,3262713,3262719,3262744,3262752,3262753,3262761,3262773,3262789,3262802,3262817,3262905,3262907,3262911,3262927,3262936,3262944,3262948,3262953,3262961,3262976,3262990,3262993,3263007,3263014,3263031,3263041,3263058,3263073,3263085,3263087,3263097,3263099,3263107,3263109,3263115,3263135,3263141,3263150,3263180,3263182,3263183,3263199,3263200,3263209,3263253,3263289,3263319,3263327,3263344,3263374,3263398,3263408,3263418,3263419,3263429,3263504,3263508,3263551,3263563,3263564,3263596,3263602,3263627,3263660,3263676,3263727,3263743,3263755,3263768,3263778,3263808,3263810,3263834,3263839,3263858,3263891,3263909,3263926,3263928,3263930,3263936,3263948,3263967,3263978,3263980,3263986,3264008,3264023,3264030,3264031,3264057,3264079,3264091,3264113,3264115,3264136,3264166,3264190,3264207,3264210,3264212,3264234,3264248,3264300,3264323,3264330,3264332,3264339,3264346,3264357,3264364,3264405,3264408,3264442,3264446,3264447,3264449,3264474,3264475,3264484,3264524,3264527,3264560,3264571,3264604,3264606,3264612,3264629,3264645,3264650,3264669,3264687,3264694,3264706,3264713,3264718,3264761,3264769,3264772,3264781,3264783,3264825,3264827,3264839,3264871,3264888,3264913,3264914,3264917,3264919,3264921,3264930,3264935,3264936,3264970,3264973,3265006,3265040,3265047,3265050,3265066,3265078,3265082,3265083,3265088,3265089,3265102,3265104,3265113,3265137,3265165,3265170,3265210,3265220,3265237,3265241,3265246,3265267,3265271,3265282,3265298,3265300,3265312,3265327,3265338,3265363,3265383,3265400,3265405,3265406,3265411,3265414,3265426,3265428,3265430,3265438,3265455,3265463,3265468,3265473,3265477,3265482,3265483,3265506,3265508,3265516,3265531,3265536,3265537,3265562,3265565,3265569,3265572,3265583,3265598,3265604,3265610,3265612,3265624,3265631,3265637,3265638,3265639,3265657,3265658,3265674,3265679,3265685,3265690,3265716,3265717,3265719,3265726,3265736,3265748,3265752,3265753,3265755,3265757,3265776,3265782,3265784,3265797,3265802,3265821,3265840,3265861,3265871,3265879,3265881,3265882,3265884,3265894,3265914,3265921,3265938,3265945,3265949,3265956,3265958,3266001,3266012,3266018,3266022,3266029,3266056,3266076,3266079,3266082,3266095,3266102,3266109,3266110,3266121,3266122,3266123,3266124,3266132,3266149,3266153,3266157,3266167,3266183,3266197,3266203,3266210,3266211,3266215,3266216,3266220,3266252,3266263,3266276,3266281,3266286,3266291,3266292,3266298,3266302,3266313,3266320,3266325,3266336,3266349,3266350,3266351,3266358,3266360,3266373,3266383,3266393,3266395,3266404,3266411,3266417,3266418,3266419,3266423,3266433,3266434,3266440,3266442,3266446,3266447,3266449,3266453,3266456,3266458,3266467,3266469,3266475,3266478,3266489,3266492,3266493,3266494,3266502,3266505,3266510,3266559,3266563,3266570,3266577,3266578,3266581,3266593,3266609,3266621,3266622,3266626,3266629,3266632,3266637,3266641,3266643,3266651,3266652,3266657,3266666,3266674,3266681,3266682,3266695,3266696,3266714,3266755,3266757,3266763,3266769,3266785,3266786,3266793,3266794,3266799,3266810,3266817,3266825,3266832,3266837,3266839,3266852,3266865,3266866,3266872,3266880,3266890,3266892,3266894,3266895,3266908,3266913,3266923,3266924,3266932,3266947,3266960,3266967,3266971,3266982,3266990,3267003,3267018,3267026,3267049,3267056,3267058,3267071,3267075,3267076,3267088,3267089,3267091,3267094,3267098,3267100,3267104,3267105,3267117,3267124,3267128,3267142,3267145,3267167,3267173,3267197,3267219,3267220,3267227,3267241,3267243,3267259,3267276,3267285,3267295,3267325,3267330,3267340,3267370,3267371,3267374,3267384,3267396,3267406,3267414,3267416,3267417,3267441,3267443,3267453,3267454,3267455,3267463,3267475,3267481,3267482,3267487,3267499,3267506,3267513,3267515,3267518,3267524,3267525,3267528,3267534,3267542,3267565,3267569,3267591,3267593,3267599,3267620,3267623,3267629,3267641,3267647,3267654,3267657,3267663,3267665,3267669,3267674,3267688,3267689,3267692,3267710,3267717,3267719,3267731,3267734,3267742,3267750,3267756,3267760,3267763,3267771,3267783,3267787,3267793,3267804,3267812,3267814,3267822,3267830,3267833,3267839,3267847,3267849,3267859,3267867,3267875,3267877,3267888,3267893,3267906,3267917,3267934,3267946,3267955,3267956,3267960,3267963,3267968,3267992,3268004,3268017,3268018,3268021,3268024,3268034,3268037,3268040,3268041,3268043,3268060,3268064,3268067,3268071,3268082,3268084,3268087,3268096,3268107,3268110,3268130,3268131,3268134,3268140,3268146,3268162,3268176,3268186,3268192,3268193,3268201,3268213,3268224,3268225,3268239,3268240,3268248,3268251,3268261,3268269,3268313,3268321,3268336,3268342,3268354,3268366,3268379,3268381,3268395,3268404,3268410,3268414,3268420,3268425,3268427,3268431,3268434,3268440,3268449,3268450,3268467,3268468,3268471,3268516,3268524,3268546,3268547,3268550,3268551,3268554,3268558,3268572,3268575,3268577,3268582,3268597,3268607,3268618,3268623,3268625,3268637,3268645,3268674,3268678,3268685,3268688,3268707,3268717,3268728,3268735,3268741,3268749,3268750,3268758,3268765,3268774,3268785,3268787,3268794,3268799,3268802,3268809,3268819,3268823,3268824,3268829,3268831,3268842,3268848,3268855,3268858,3268862,3268880,3268886,3268887,3268918,3268925,3268932,3268937,3268949,3268950,3268951,3268954,3268959,3268972,3268975,3268979,3268980,3268986,3269008,3269029,3269046,3269086,3269094,3269099,3269101,3269118,3269121,3269127,3269130,3269134,3269143,3269148,3269151,3269166,3269205,3269206,3269208,3269213,3269221,3269227,3269230,3269241,3269246,3269252,3269263,3269281,3269289,3269290,3269292,3269314,3269320,3269325,3269346,3269353,3269358,3269363,3269366,3269385,3269395,3269406,3269415,3269421,3269422,3269430,3269438,3269445,3269450,3269456,3269457,3269471,3269480,3269482,3269484,3269485,3269495,3269505,3269515,3269525,3269526,3269528,3269533,3269536,3269555,3269565,3269570,3269574,3269580,3269609,3269614,3269616,3269627,3269632,3269640,3269656,3269664,3269672,3269678,3269694,3269701,3269708,3269717,3269732,3269742,3269751,3269768,3269775,3269780,3269784,3269789,3269790,3269808,3269809,3269831,3269850,3269854,3269876,3269893,3269895,3269922,3269926,3269931,3269932,3269945,3269947,3269949,3269957,3269966,3269967,3269973,3269980,3269988,3269991,3269995,3270000,3270006,3270011,3270050,3270059,3270061,3270077,3270100,3270148,3270166,3270167,3270169,3270179,3270183,3270189,3270193,3270194,3270206,3270231,3270235,3270247,3270281,3270284,3270286,3270289,3270299,3270311,3270315,3270322,3270329,3270330,3270336,3270368,3270381,3270383,3270400,3270405,3270415,3270420,3270424,3270442,3270462,3270464,3270474,3270484,3270489,3270501,3270502,3270515,3270525,3270542,3270584,3270589,3270593,3270598,3270600,3270615,3270632,3270635,3270652,3270671,3270704,3270728,3270732,3270744,3270768,3270770,3270789,3270805,3270813,3270827,3270848,3270866,3270870,3270884,3270902,3270905,3270912,3270927,3270934,3270943,3270974,3270980,3270984,3270990,3270999,3271015,3271028,3271033,3271037,3271041,3271047,3271048,3271063,3271064,3271067,3271076,3271084,3271134,3271144,3271150,3271155,3271157,3271165,3271166,3271171,3271172,3271176,3271190,3271191,3271192,3271201,3271205,3271207,3271208,3271215,3271219,3271220,3271221,3271224,3271248,3271249,3271250,3271252,3271256,3271273,3271276,3271280,3271281,3271283,3271288,3271289,3271294,3271296,3271300,3271307,3271309,3271313,3271317,3271324,3271333,3271336,3271337,3271340,3271344,3271352,3271357,3271368,3271382,3271398,3271405,3271407,3271408,3271409,3271415,3271430,3271432,3271442,3271447,3271467,3271476,3271480,3271487,3271493,3271494,3271497,3271500,3271504,3271507,3271509,3271510,3271528,3271530,3271532,3271533,3271534,3271543,3271549,3271552,3271555,3271556,3271562,3271565,3271571,3271574,3271579,3271581,3271582,3271584,3271585,3271588,3271591,3271592,3271597,3271601,3271603,3271606,3271619,3271622,3271626,3271627,3271628,3271629,3271637,3271644,3271646,3271651,3271653,3271657,3271659,3271663,3271666,3271669,3271673,3271675,3271678,3271682,3271689,3271694,3271704,3271705,3271719,3271720,3271724,3271727,3271728,3271730,3271736,3271737,3271742,3271751,3271754,3271756,3271758,3271759,3271760,3271763,3271767,3271770,3271781,3271782,3271787,3271789,3271792,3271795,3271798,3271800,3271804,3271810,3271814,3271818,3271822,3271824,3271832,3271834,3271837,3271842,3271847,3271853,3271857,3271858,3271864,3271866,3271869,3271871,3271882,3271884,3271886,3271893,3271901,3271904,3271914,3271921,3271924,3271930,3271948,3271953,3271954,3271955,3271960,3271963,3271969,3271971,3271983,3271987,3271995,3272001,3272008,3272014,3272019,3272021,3272025,3272028,3272029,3272032,3272037,3272039,3272041,3272042,3272044,3272046,3272048,3272051,3272054,3272056,3272057,3272059,3272061,3272062,3272064,3272065,3272067,3272070,3272072,3272073,3272074,3272088,3272092,3272094,3272095,3272098,3272103,3272108,3272109,3272111,3272112,3272113,3272114,3272117,3272128,3272133,3272135,3272137,3272138,3272139,3272140,3272142,3272143,3272146,3272147,3272149,3272151,3272153,3272154,3272156,3272161,3272162,3272163,3272164,3272172,3272173,3272174,3272177,3272178,3272181,3272182,3272183,3272185,3272193,3272194,3272200,3272213,3272214,3272216,3272219,3272220,3272221,3272222,3272223,3272225,3272226,3272227,3272230,3272232,3272239,3272240,3272243,3272247,3272248,3272255,3272256,3272264,3272271,3272274,3272276,3272279,3272290,3272294,3272298,3272300,3272308,3272315,3272316,3272324,3272329,3272332,3272335,3272341,3272343,3272346,3272350,3272359,3272361,3272367,3272372,3272381,3272388,3272391,3272395,3272396,3272403,3272407,3272411,3272412,3272414,3272417,3272418,3272420,3272423,3272434,3272435,3272436,3272444,3272448,3272453,3272455,3272462,3272477,3272479,3272485,3272491,3272492,3272501,3272508,3272513,3272517,3272518,3272526,3272533,3272534,3272535,3272544,3272546,3272547,3272550,3272552,3272554,3272555,3272563,3272564,3272567,3272573,3272574,3272575,3272576,3272578,3272580,3272581,3272583,3272584,3272590,3272593,3272594,3272603,3272611,3272612,3272614,3272616,3272620,3272623,3272626,3272639,3272648,3272661,3272669,3272683,3272686,3272690,3272691,3272692,3272693,3272695,3272701,3272702,3272704,3272709,3272713,3272716,3272719,3272724,3272725,3272729,3272737,3272750,3272771,3272772,3272775,3272779,3272787,3272789,3272793,3272797,3272820,3272833,3272842,3272844,3272845,3272855,3272857,3272861,3272871,3272874,3272875,3272884,3272885,3272903,3272907,3272909,3272934,3272939,3272989,3273019,3273033,3273127,3273318,3273751,3276372,3278530,3293096,3293100,3293103,3293104,3293105,3293107,3293108,3293109,3293110,3293112,3293113,3293115,3293118,3293120,3293121,3293124,3293125,3293126,3293128,3293131,3293136,3293139,3293145,3293146,3293149,3293153,3293154,3293156,3293157,3293160,3293161,3293162,3293165,3293166,3293168,3293169,3293173,3293177,3293180,3293183,3293188,3293189,3293192])
    for query in queryset:
        try:
            url = 'https://miao.baidu.com/abdr?_o=https%3A%2F%2Fhaoma.baidu.com'
            body = {
                "data": "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",
                "key_id": "f9a98d46d41c44cd",
                "enc": 2
            }
            headers = {
                "Content-Type": "application/json"
            }
            response = requests.post(url=url, data=json.dumps(body), headers=headers)
            result = response.json()
            url = 'https://haoma.baidu.com/api/v1/search'
            body = {
                "data": result['data'],
                "key_id": "47",
                "sign": result['sign'],
                "page": 1,
                "size": 10,
                "search": query.mobile,
                "user_search": "null"
            }
            headers = {
                "Content-Type": "application/json",
                "Cookie": 'BIDUPSID=8BB9B10860865F832CE6459B28EE3AD2; PSTM=1624710066; BDUSS=VU1aTRsbWp2dH56WGFkczR2Z0RIZHRaMHRWTjgyWFd6ZTBqM2FhR0JlaUM2ekJsSVFBQUFBJCQAAAAAAAAAAAEAAABVY0MLYnVzaW5nMTk4MQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIJeCWWCXgllU; BDUSS_BFESS=VU1aTRsbWp2dH56WGFkczR2Z0RIZHRaMHRWTjgyWFd6ZTBqM2FhR0JlaUM2ekJsSVFBQUFBJCQAAAAAAAAAAAEAAABVY0MLYnVzaW5nMTk4MQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIJeCWWCXgllU; BAIDUID=300657ACFFA384D87788A99E20DDF517:FG=1; MCITY=-257%3A; H_PS_PSSID=60236_60283_60289_60296; H_WISE_SIDS_BFESS=40499_40080_60138_60236; BDSFRCVID=0F_OJexroG352HQts7PX81D3jgKKvV3TDYLEOwXPsp3LGJLVF5UJEG0PtoaGdu_-ox8EogKK3gOTH4DF_2uxOjjg8UtVJeC6EG0Ptf8g0M5; H_BDCLCKID_SF=tRk8oI0aJDvjDb7GbKTMbtCSbfTJetJyaR3jbCJvWJ5WqR7jDT_Kyh_3KNJTJjkD3n7B0hvcbfL5ShbXXMoxMT_jXN3EJpT7fNcl_x5F3l02V-bv-fJf5qRDhpAO04RMW20e0h7mWIbUsxA45J7cM4IseboJLfT-0bc4KKJxbnLWeIJEjjCajTcQjN_qq-jeHDrKBRbaHJOoDDkxQlncy4LbKxnxJ5LHWN6JQK3xyIPasKOFbURv5l5y3-OkWUQ9babTQ-tbBp3k8MQDjqokQfbQ0hOy5xbbbG8LW-Py3R7JOpkRbUnxy50vQRPH-Rv92DQMVU52QqcqEIQHQT3m5-5bbN3ut6T2-DA_oKLytCoP; H_WISE_SIDS=60236_60283_60289_60296; BA_HECTOR=04a00180858l2ka02kag0l05dvf2nu1j4l89v1u; BAIDUID_BFESS=300657ACFFA384D87788A99E20DDF517:FG=1; BDSFRCVID_BFESS=0F_OJexroG352HQts7PX81D3jgKKvV3TDYLEOwXPsp3LGJLVF5UJEG0PtoaGdu_-ox8EogKK3gOTH4DF_2uxOjjg8UtVJeC6EG0Ptf8g0M5; H_BDCLCKID_SF_BFESS=tRk8oI0aJDvjDb7GbKTMbtCSbfTJetJyaR3jbCJvWJ5WqR7jDT_Kyh_3KNJTJjkD3n7B0hvcbfL5ShbXXMoxMT_jXN3EJpT7fNcl_x5F3l02V-bv-fJf5qRDhpAO04RMW20e0h7mWIbUsxA45J7cM4IseboJLfT-0bc4KKJxbnLWeIJEjjCajTcQjN_qq-jeHDrKBRbaHJOoDDkxQlncy4LbKxnxJ5LHWN6JQK3xyIPasKOFbURv5l5y3-OkWUQ9babTQ-tbBp3k8MQDjqokQfbQ0hOy5xbbbG8LW-Py3R7JOpkRbUnxy50vQRPH-Rv92DQMVU52QqcqEIQHQT3m5-5bbN3ut6T2-DA_oKLytCoP; delPer=0; PSINO=7; ZFY=NB21gItSoVmT4LM5nQMWXZIbNhjZNDq:B3X:ATWoSyh2E:C; BDORZ=B490B5EBF6F3CD402E515D22BCDA1598; BDRCVFR[feWj1Vr5u3D]=I67x6TjHwwYf0; __sec_t_key=699e5aa8-6752-4eb2-93ec-aea8a6016760; Hm_lvt_71927aaa06a0dc9d2d16f927f1f6937f=1716173993; __bid_n=18961aca771124879e3929; BMAP_SECKEY=KScO5AvXVPOP_H7jOE3TWbMTTWvB7pB-qeT8FG9E2RTEo1U4xJuVJDj3UTUvCqUtGeORmpjNgGuDEqX9Gr4aePxHrQ_uPyFNgRI-YOVU359K3E8WdqFVvrJHGIB1yGyTvkq9JR4IzYroby5YjYOQMUL7eX8HG-opgiEcw-3zxCs3t2iWR5OGMjRu4rd2o8WTWg-FfLXUOU1_yyLqUpAx2Q; RT="z=1&dm=baidu.com&si=b7ac293b-18e7-4572-bee2-7f37dcd59e52&ss=lwedonde&sl=3&tt=1q3&bcn=https%3A%2F%2Ffclog.baidu.com%2Flog%2Fweirwood%3Ftype%3Dperf"; Hm_lpvt_71927aaa06a0dc9d2d16f927f1f6937f=1716174464; SECKEY_ABVK=/MccDqtEtZqeWu/rYE6WPipIgB0xKqqV9aaBV2jeWho%3D; ab_sr=1.0.1_MmMzNDE5MjU1MTZhZmE5NDFlNDIyZDFhNTYyYzkxYTNmYjAyNTZmNTcyMzg2ZjNmNzkwYjczMmY5MThlZmIxZjY4OTYzYWI4Y2YwZjg5ZjQ3NjcwYjE4YzllNDliYjJmNGEyNDE2ZTk0ZDNlZWYzYTYyNjRkZmUwZjUzZDJhMDA0YzBmYWRmZjIyYTlhNGRiZDIzYjEzY2Q1M2YwZWRlMw=='
            }
            response = requests.post(url=url, data=json.dumps(body), headers=headers)
            result = response.json()
            print(result)
            time.sleep(15)
            query.city = result['data'][query.mobile]['location']['area'][0]['city']
            query.province = result['data'][query.mobile]['location']['province']
            query.operator = result['data'][query.mobile]['location']['operator']
            query.save()
        except:
            pass


def wash_operator1():
    queryset = CustomerUserVice.objects.filter(mobile__isnull=False, operator__isnull=True, id__in=[29931,70592,566705,615593,694964,732031,788634,893910,922266,931564,946442,956666,973534,974607,1100282,1189716,1328423,1412120,1697417,1762650,1881166,1914139,1971190,2133852,2215486,2268738,2511499,2589257,2744292,3073774,3073776,3073912,3074197,3074242,3074246,3074949,3076428,3076633,3076956,3077250,3077402,3077854,3079235,3084195,3084212,3086371,3088066,3089191,3089195,3089261,3094217,3094244,3097264,3097882,3100074,3101805,3113211,3120434,3121292,3121661,3121990,3122232,3122316,3122513,3122716,3123011,3123213,3123412,3123661,3123883,3124089,3124258,3124308,3124436,3124472,3124590,3125016,3125236,3125312,3125360,3125566,3125568,3125668,3125682,3126154,3126742,3127121,3127326,3127402,3127641,3127683,3128048,3128523,3128681,3128865,3128868,3128994,3129185,3129313,3129373,3129417,3129557,3129875,3130041,3130165,3130302,3130404,3130516,3130633,3130978,3130980,3131245,3131302,3131409,3131432,3131469,3131486,3131686,3131858,3131977,3132475,3132695,3132970,3133634,3133656,3133771,3133802,3133869,3134032,3135074,3135164,3135333,3135380,3135402,3135490,3135514,3135833,3137916,3138563,3138742,3144925,3145089,3145452,3145869,3146213,3146300,3146323,3146351,3146397,3146644,3146704,3146794,3147040,3147501,3147652,3147759,3147973,3148116,3148692,3148990,3149117,3149223,3149718,3149738,3149892,3150046,3150173,3150194,3150489,3150538,3150692,3150802,3150883,3150922,3151272,3151327,3151572,3151575,3151614,3151858,3152064,3152759,3152876,3152994,3153088,3153383,3153440,3153449,3153836,3153922,3153928,3154361,3154393,3154744,3154747,3155205,3155546,3155561,3156122,3156205,3157667,3157904,3158320,3173383,3175543,3192172,3194957,3194962,3196583,3196680,3198303,3203582,3208435,3212190,3227656,3229793,3233335,3233356,3233545,3233704,3233812,3233965,3234462,3234499,3234647,3234791,3234831,3235145,3235257,3235363,3235374,3235496,3235723,3235733,3235771,3235806,3235858,3236554,3236600,3236993,3238891,3240666,3241377,3241380,3241580,3242471,3242567,3243063,3243091,3243169,3243287,3243392,3243632,3243813,3243819,3243858,3243945,3243982,3244054,3244215,3244356,3244365,3244375,3244387,3244428,3244439,3244453,3244469,3244474,3244491,3244492,3244496,3244503,3244529,3244532,3244584,3244586,3244612,3244735,3244772,3245006,3245418,3245956,3246111,3246116,3246293,3246333,3246384,3246399,3246616,3246646,3246711,3246826,3247211,3247311,3247443,3247497,3247562,3247626,3248036,3248085,3248130,3248152,3248193,3248231,3248402,3248493,3248499,3248683,3248911,3248930,3248969,3249007,3249087,3249143,3249170,3249237,3249258,3249291,3249414,3249431,3249596,3249726,3249859,3249889,3249912,3249962,3250032,3250040,3250090,3250111,3250113,3250173,3250206,3250212,3250231,3250272,3250309,3250391,3250408,3250535,3250560,3250656,3250681,3250971,3251264,3251300,3251373,3251642,3251762,3251865,3252025,3252096,3252583,3252590,3252698,3252749,3252764,3252793,3252937,3252982,3253284,3253341,3253394,3253420,3253516,3253885,3253896,3253931,3253932,3254044,3254271,3254279,3254337,3254349,3254409,3254417,3254442,3254448,3254637,3254652,3254665,3254696,3254724,3254789,3254884,3254943,3255268,3255325,3255383,3255594,3255650,3255739,3255875,3256150,3256175,3256190,3256239,3256288,3256359,3256426,3256433,3256455,3256462,3256514,3256720,3256757,3256792,3256859,3257046,3257137,3257138,3257182,3257238,3257240,3257267,3257383,3257461,3257491,3257519,3257637,3257681,3257802,3257831,3257834,3257864,3257904,3257954,3257984,3257990,3257997,3258003,3258013,3258014,3258021,3258048,3258057,3258154,3258295,3258313,3258381,3258459,3258532,3258533,3258587,3258669,3258713,3258727,3258735,3258778,3258931,3259067,3259135,3259210,3259221,3259279,3259312,3259319,3259334,3259378,3259531,3259532,3259537,3259568,3259625,3259631,3259644,3259689,3259703,3259710,3259726,3259772,3259787,3259800,3259866,3259910,3259919,3259982,3260015,3260112,3260185,3260210,3260217,3260225,3260231,3260244,3260247,3260258,3260272,3260316,3260422,3260443,3260454,3260461,3260475,3260513,3260522,3260561,3260587,3260606,3260757,3260807,3260811,3260858,3260863,3260904,3260905,3260929,3260985,3261005,3261060,3261072,3261088,3261126,3261144,3261169,3261171,3261197,3261200,3261213,3261236,3261327,3261331,3261364,3261385,3261530,3261648,3261691,3261715,3261720,3261923,3262028,3262035,3262055,3262096,3262128,3262245,3262291,3262311,3262319,3262323,3262347,3262385,3262419,3262470,3262503,3262550,3262564,3262698,3262713,3262719,3262744,3262752,3262753,3262761,3262773,3262789,3262802,3262817,3262905,3262907,3262911,3262927,3262936,3262944,3262948,3262953,3262961,3262976,3262990,3262993,3263007,3263014,3263031,3263041,3263058,3263073,3263085,3263087,3263097,3263099,3263107,3263109,3263115,3263135,3263141,3263150,3263180,3263182,3263183,3263199,3263200,3263209,3263253,3263289,3263319,3263327,3263344,3263374,3263398,3263408,3263418,3263419,3263429,3263504,3263508,3263551,3263563,3263564,3263596,3263602,3263627,3263660,3263676,3263727,3263743,3263755,3263768,3263778,3263808,3263810,3263834,3263839,3263858,3263891,3263909,3263926,3263928,3263930,3263936,3263948,3263967,3263978,3263980,3263986,3264008,3264023,3264030,3264031,3264057,3264079,3264091,3264113,3264115,3264136,3264166,3264190,3264207,3264210,3264212,3264234,3264248,3264300,3264323,3264330,3264332,3264339,3264346,3264357,3264364,3264405,3264408,3264442,3264446,3264447,3264449,3264474,3264475,3264484,3264524,3264527,3264560,3264571,3264604,3264606,3264612,3264629,3264645,3264650,3264669,3264687,3264694,3264706,3264713,3264718,3264761,3264769,3264772,3264781,3264783,3264825,3264827,3264839,3264871,3264888,3264913,3264914,3264917,3264919,3264921,3264930,3264935,3264936,3264970,3264973,3265006,3265040,3265047,3265050,3265066,3265078,3265082,3265083,3265088,3265089,3265102,3265104,3265113,3265137,3265165,3265170,3265210,3265220,3265237,3265241,3265246,3265267,3265271,3265282,3265298,3265300,3265312,3265327,3265338,3265363,3265383,3265400,3265405,3265406,3265411,3265414,3265426,3265428,3265430,3265438,3265455,3265463,3265468,3265473,3265477,3265482,3265483,3265506,3265508,3265516,3265531,3265536,3265537,3265562,3265565,3265569,3265572,3265583,3265598,3265604,3265610,3265612,3265624,3265631,3265637,3265638,3265639,3265657,3265658,3265674,3265679,3265685,3265690,3265716,3265717,3265719,3265726,3265736,3265748,3265752,3265753,3265755,3265757,3265776,3265782,3265784,3265797,3265802,3265821,3265840,3265861,3265871,3265879,3265881,3265882,3265884,3265894,3265914,3265921,3265938,3265945,3265949,3265956,3265958,3266001,3266012,3266018,3266022,3266029,3266056,3266076,3266079,3266082,3266095,3266102,3266109,3266110,3266121,3266122,3266123,3266124,3266132,3266149,3266153,3266157,3266167,3266183,3266197,3266203,3266210,3266211,3266215,3266216,3266220,3266252,3266263,3266276,3266281,3266286,3266291,3266292,3266298,3266302,3266313,3266320,3266325,3266336,3266349,3266350,3266351,3266358,3266360,3266373,3266383,3266393,3266395,3266404,3266411,3266417,3266418,3266419,3266423,3266433,3266434,3266440,3266442,3266446,3266447,3266449,3266453,3266456,3266458,3266467,3266469,3266475,3266478,3266489,3266492,3266493,3266494,3266502,3266505,3266510,3266559,3266563,3266570,3266577,3266578,3266581,3266593,3266609,3266621,3266622,3266626,3266629,3266632,3266637,3266641,3266643,3266651,3266652,3266657,3266666,3266674,3266681,3266682,3266695,3266696,3266714,3266755,3266757,3266763,3266769,3266785,3266786,3266793,3266794,3266799,3266810,3266817,3266825,3266832,3266837,3266839,3266852,3266865,3266866,3266872,3266880,3266890,3266892,3266894,3266895,3266908,3266913,3266923,3266924,3266932,3266947,3266960,3266967,3266971,3266982,3266990,3267003,3267018,3267026,3267049,3267056,3267058,3267071,3267075,3267076,3267088,3267089,3267091,3267094,3267098,3267100,3267104,3267105,3267117,3267124,3267128,3267142,3267145,3267167,3267173,3267197,3267219,3267220,3267227,3267241,3267243,3267259,3267276,3267285,3267295,3267325,3267330,3267340,3267370,3267371,3267374,3267384,3267396,3267406,3267414,3267416,3267417,3267441,3267443,3267453,3267454,3267455,3267463,3267475,3267481,3267482,3267487,3267499,3267506,3267513,3267515,3267518,3267524,3267525,3267528,3267534,3267542,3267565,3267569,3267591,3267593,3267599,3267620,3267623,3267629,3267641,3267647,3267654,3267657,3267663,3267665,3267669,3267674,3267688,3267689,3267692,3267710,3267717,3267719,3267731,3267734,3267742,3267750,3267756,3267760,3267763,3267771,3267783,3267787,3267793,3267804,3267812,3267814,3267822,3267830,3267833,3267839,3267847,3267849,3267859,3267867,3267875,3267877,3267888,3267893,3267906,3267917,3267934,3267946,3267955,3267956,3267960,3267963,3267968,3267992,3268004,3268017,3268018,3268021,3268024,3268034,3268037,3268040,3268041,3268043,3268060,3268064,3268067,3268071,3268082,3268084,3268087,3268096,3268107,3268110,3268130,3268131,3268134,3268140,3268146,3268162,3268176,3268186,3268192,3268193,3268201,3268213,3268224,3268225,3268239,3268240,3268248,3268251,3268261,3268269,3268313,3268321,3268336,3268342,3268354,3268366,3268379,3268381,3268395,3268404,3268410,3268414,3268420,3268425,3268427,3268431,3268434,3268440,3268449,3268450,3268467,3268468,3268471,3268516,3268524,3268546,3268547,3268550,3268551,3268554,3268558,3268572,3268575,3268577,3268582,3268597,3268607,3268618,3268623,3268625,3268637,3268645,3268674,3268678,3268685,3268688,3268707,3268717,3268728,3268735,3268741,3268749,3268750,3268758,3268765,3268774,3268785,3268787,3268794,3268799,3268802,3268809,3268819,3268823,3268824,3268829,3268831,3268842,3268848,3268855,3268858,3268862,3268880,3268886,3268887,3268918,3268925,3268932,3268937,3268949,3268950,3268951,3268954,3268959,3268972,3268975,3268979,3268980,3268986,3269008,3269029,3269046,3269086,3269094,3269099,3269101,3269118,3269121,3269127,3269130,3269134,3269143,3269148,3269151,3269166,3269205,3269206,3269208,3269213,3269221,3269227,3269230,3269241,3269246,3269252,3269263,3269281,3269289,3269290,3269292,3269314,3269320,3269325,3269346,3269353,3269358,3269363,3269366,3269385,3269395,3269406,3269415,3269421,3269422,3269430,3269438,3269445,3269450,3269456,3269457,3269471,3269480,3269482,3269484,3269485,3269495,3269505,3269515,3269525,3269526,3269528,3269533,3269536,3269555,3269565,3269570,3269574,3269580,3269609,3269614,3269616,3269627,3269632,3269640,3269656,3269664,3269672,3269678,3269694,3269701,3269708,3269717,3269732,3269742,3269751,3269768,3269775,3269780,3269784,3269789,3269790,3269808,3269809,3269831,3269850,3269854,3269876,3269893,3269895,3269922,3269926,3269931,3269932,3269945,3269947,3269949,3269957,3269966,3269967,3269973,3269980,3269988,3269991,3269995,3270000,3270006,3270011,3270050,3270059,3270061,3270077,3270100,3270148,3270166,3270167,3270169,3270179,3270183,3270189,3270193,3270194,3270206,3270231,3270235,3270247,3270281,3270284,3270286,3270289,3270299,3270311,3270315,3270322,3270329,3270330,3270336,3270368,3270381,3270383,3270400,3270405,3270415,3270420,3270424,3270442,3270462,3270464,3270474,3270484,3270489,3270501,3270502,3270515,3270525,3270542,3270584,3270589,3270593,3270598,3270600,3270615,3270632,3270635,3270652,3270671,3270704,3270728,3270732,3270744,3270768,3270770,3270789,3270805,3270813,3270827,3270848,3270866,3270870,3270884,3270902,3270905,3270912,3270927,3270934,3270943,3270974,3270980,3270984,3270990,3270999,3271015,3271028,3271033,3271037,3271041,3271047,3271048,3271063,3271064,3271067,3271076,3271084,3271134,3271144,3271150,3271155,3271157,3271165,3271166,3271171,3271172,3271176,3271190,3271191,3271192,3271201,3271205,3271207,3271208,3271215,3271219,3271220,3271221,3271224,3271248,3271249,3271250,3271252,3271256,3271273,3271276,3271280,3271281,3271283,3271288,3271289,3271294,3271296,3271300,3271307,3271309,3271313,3271317,3271324,3271333,3271336,3271337,3271340,3271344,3271352,3271357,3271368,3271382,3271398,3271405,3271407,3271408,3271409,3271415,3271430,3271432,3271442,3271447,3271467,3271476,3271480,3271487,3271493,3271494,3271497,3271500,3271504,3271507,3271509,3271510,3271528,3271530,3271532,3271533,3271534,3271543,3271549,3271552,3271555,3271556,3271562,3271565,3271571,3271574,3271579,3271581,3271582,3271584,3271585,3271588,3271591,3271592,3271597,3271601,3271603,3271606,3271619,3271622,3271626,3271627,3271628,3271629,3271637,3271644,3271646,3271651,3271653,3271657,3271659,3271663,3271666,3271669,3271673,3271675,3271678,3271682,3271689,3271694,3271704,3271705,3271719,3271720,3271724,3271727,3271728,3271730,3271736,3271737,3271742,3271751,3271754,3271756,3271758,3271759,3271760,3271763,3271767,3271770,3271781,3271782,3271787,3271789,3271792,3271795,3271798,3271800,3271804,3271810,3271814,3271818,3271822,3271824,3271832,3271834,3271837,3271842,3271847,3271853,3271857,3271858,3271864,3271866,3271869,3271871,3271882,3271884,3271886,3271893,3271901,3271904,3271914,3271921,3271924,3271930,3271948,3271953,3271954,3271955,3271960,3271963,3271969,3271971,3271983,3271987,3271995,3272001,3272008,3272014,3272019,3272021,3272025,3272028,3272029,3272032,3272037,3272039,3272041,3272042,3272044,3272046,3272048,3272051,3272054,3272056,3272057,3272059,3272061,3272062,3272064,3272065,3272067,3272070,3272072,3272073,3272074,3272088,3272092,3272094,3272095,3272098,3272103,3272108,3272109,3272111,3272112,3272113,3272114,3272117,3272128,3272133,3272135,3272137,3272138,3272139,3272140,3272142,3272143,3272146,3272147,3272149,3272151,3272153,3272154,3272156,3272161,3272162,3272163,3272164,3272172,3272173,3272174,3272177,3272178,3272181,3272182,3272183,3272185,3272193,3272194,3272200,3272213,3272214,3272216,3272219,3272220,3272221,3272222,3272223,3272225,3272226,3272227,3272230,3272232,3272239,3272240,3272243,3272247,3272248,3272255,3272256,3272264,3272271,3272274,3272276,3272279,3272290,3272294,3272298,3272300,3272308,3272315,3272316,3272324,3272329,3272332,3272335,3272341,3272343,3272346,3272350,3272359,3272361,3272367,3272372,3272381,3272388,3272391,3272395,3272396,3272403,3272407,3272411,3272412,3272414,3272417,3272418,3272420,3272423,3272434,3272435,3272436,3272444,3272448,3272453,3272455,3272462,3272477,3272479,3272485,3272491,3272492,3272501,3272508,3272513,3272517,3272518,3272526,3272533,3272534,3272535,3272544,3272546,3272547,3272550,3272552,3272554,3272555,3272563,3272564,3272567,3272573,3272574,3272575,3272576,3272578,3272580,3272581,3272583,3272584,3272590,3272593,3272594,3272603,3272611,3272612,3272614,3272616,3272620,3272623,3272626,3272639,3272648,3272661,3272669,3272683,3272686,3272690,3272691,3272692,3272693,3272695,3272701,3272702,3272704,3272709,3272713,3272716,3272719,3272724,3272725,3272729,3272737,3272750,3272771,3272772,3272775,3272779,3272787,3272789,3272793,3272797,3272820,3272833,3272842,3272844,3272845,3272855,3272857,3272861,3272871,3272874,3272875,3272884,3272885,3272903,3272907,3272909,3272934,3272939,3272989,3273019,3273033,3273127,3273318,3273751,3276372,3278530,3293096,3293100,3293103,3293104,3293105,3293107,3293108,3293109,3293110,3293112,3293113,3293115,3293118,3293120,3293121,3293124,3293125,3293126,3293128,3293131,3293136,3293139,3293145,3293146,3293149,3293153,3293154,3293156,3293157,3293160,3293161,3293162,3293165,3293166,3293168,3293169,3293173,3293177,3293180,3293183,3293188,3293189,3293192])
    headers = {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36"}
    for query in queryset:
        url = f'https://www.haoshudi.com/{query.mobile}.htm'
        try:
            response = requests.get(url=url, headers=headers)
            html = etree.HTML(response.content)
            province = html.xpath(f"/html/body/div[@class='wrapper']/div[@class='container']/div[@class='inner']/div[@class='mod-result']/div[@class='bd']/table/tbody/tr[2]/td[2]/span/a[@class='link'][1]/text()")[0]
            city = html.xpath(f"/html/body/div[@class='wrapper']/div[@class='container']/div[@class='inner']/div[@class='mod-result']/div[@class='bd']/table/tbody/tr[2]/td[2]/span/a[@class='link'][2]/text()")[0]
            operator = html.xpath(f"/html/body/div[@class='wrapper']/div[@class='container']/div[@class='inner']/div[@class='mod-result']/div[@class='bd']/table/tbody/tr[3]/td[2]/span/a[@class='link']/text()")[0]
            query.city = city
            query.province = province
            query.operator = operator
            query.save()
            time.sleep(10)
            print(query.mobile, province, city, operator)
        except Exception as e:
            print(query.mobile, e)
            pass


if __name__ == '__main__':
    wash_operator1()
    pass